import React from 'react'

import {
  HomeOutlined,
  SendOutlined,
  SelectOutlined,
  FolderAddOutlined,
  SearchOutlined,
  AreaChartOutlined,
  MailOutlined
} from '@ant-design/icons'

// POLICE:办案民警 KEEPER:专管员 STOREMAN:保管员 APPROVER:领导

const MenuList = [
  {
    title: '首页',
    path: 'index',
    icon: <HomeOutlined />
  },
  // {
  //   title: '拍照功能',
  //   path: 'camera',
  //   icon: <HomeOutlined />
  // },
  {
    title: '上传物品照片',
    path: 'uploaditems',
    icon: <HomeOutlined />
  },
  // {
  //   title: '手工采集涉案财物',
  //   path: 'collection',
  //   auth: ['POLICE'],
  //   icon: <SelectOutlined />
  // },
  {
    title: '移送涉案财物',
    icon: <SendOutlined />,
    auth: ['POLICE'],
    subs: [
      {
        title: '移送专管员',
        path: 'transfer'
      },
      {
        title: '告知专管员',
        path: 'inform'
      }
    ]
  },
  {
    title: '接收涉案财物',
    icon: <FolderAddOutlined />,
    auth: ['KEEPER', 'STOREMAN'],
    subs: [
      {
        title: '接收物品',
        path: 'accept'
      },
      {
        title: '确认告知',
        path: 'notify'
      },
      {
        title: '确认处理',
        path: 'take',
        auth: ['STOREMAN']
      },
      {
        title: '存放地信息登记',
        path: 'depository',
        auth: ['STOREMAN']
      }
    ]
  },
  {
    title: '借用涉案财物',
    icon: <SelectOutlined />,
    auth: ['POLICE'],
    path: 'borrow'
  },
  {
    title: '涉案财物管理',
    icon: <MailOutlined />,
    auth: ['KEEPER', 'STOREMAN', 'APPROVER'],
    subs: [
      {
        title: '自行保管',
        path: 'self',
        auth: ['KEEPER']
      },
      {
        title: '集中保管',
        path: 'centralized',
        auth: ['KEEPER']
      },
      {
        title: '确认借用涉案财物',
        path: 'confirm',
        auth: ['KEEPER', 'STOREMAN']
      },
      {
        title: '归还涉案财物',
        path: 'return',
        auth: ['KEEPER', 'STOREMAN']
      },
      {
        title: '领取涉案财物',
        path: 'receive',
        auth: ['KEEPER', 'STOREMAN']
      },
      {
        title: '处理涉案财物',
        path: 'handle',
        auth: ['KEEPER', 'STOREMAN']
      },
      {
        title: '借用审批',
        path: 'approveList',
        auth: ['APPROVER']
      }
    ]
  },
  {
    title: '查询',
    icon: <SearchOutlined />,
    subs: [
      {
        title: '查询涉案财物',
        path: 'query'
      },
      {
        title: '查询台账信息',
        path: 'standbook'
      },
      {
        title: '查询法律文书',
        path: 'law'
      }
    ]
  },
  {
    title: '辅助功能',
    icon: <SearchOutlined />,
    subs: [
      {
        title: '作废凭证',
        path: 'accessibility',
        auth: ['KEEPER', 'STOREMAN', 'APPROVER']
      },
      {
        title: '附件上传',
        path: 'uploadfile',
        auth: ['KEEPER', 'STOREMAN', 'APPROVER','POLICE']
      }
    ]
  },
  {
    title: '答疑专栏',
    path: 'qa',
    auth: ['KEEPER', 'STOREMAN', 'POST_ADMIN']
  }
  // {
  //   title: '数据分析',
  //   path: 'dashboard',
  //   icon: <AreaChartOutlined />
  // }
]

export default MenuList
